<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>


        var salary = 10000
        var add = 10000*12
        for(var i = 1;i<=9;i++){
            salary += salary*0.05
            add += salary*12
        }
        
        console.log(add.toFixed(3));
        
        console.log(salary.toFixed(3));
        
        // salary += salary*(0.05 + 1)
        // salary += salary*(0.05 + 1)
        // salary += salary*(0.05 + 1)
        // salary += salary*(0.05 + 1)
        // salary += salary*(0.05 + 1)
        // salary += salary*(0.05 + 1)
        // salary += salary*(0.05 + 1)
        // salary += salary*(0.05 + 1)
        // salary += salary*(0.05 + 1)




        
    </script>
</body>
</html>